package com.igeek.base.ch0712.Demo2;

import com.igeek.base.ch0712.Demo2.Employee;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/13 12:31
 */
public class Manager extends Employee {
    private String level;

    public Manager(String name, String address, String ID, double wage, int age, String level) {
        super(name, address, ID, wage, age);
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "姓名："+getName()+"，地址："+getAddress()+"，ID:"+getID()+"，工资："+getWage()+"，工龄："+getAge()+"，级别："+getLevel();
    }

    @Override
    public void increaseSalary() {
        double cur = getWage();
        setWage(cur * 1.2);
    }
}
